package com.computergames.server.message;
import com.computergames.server.message.cardMessage.AbstractCardMessage;
import com.computergames.server.message.chessMessage.AbstractChessMessage;
import  com.computergames.server.message.chessMessage.GobangMessage;

import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;
import lombok.ToString;

@Data
@ToString(callSuper = true)
public class MoveRequestMessage extends Message implements HasJwtToken{
    private String from;
    private AbstractGameMessage content;
    private String jwtToken;

    public MoveRequestMessage() {
    }

    public MoveRequestMessage(String from, AbstractGameMessage content, String jwtToken) {
        this.from = from;
        this.content = content;
        this.jwtToken = jwtToken;
    }

    @Override
    public int getMessageType() {
        return MoveRequestMessage;
    }
}
